
using System;
using Mono.Unix.Native;
using Mono.Fuse;
using System.Collections.Generic;

namespace CouchFS
{
	
	
	public class CouchFS : Mono.Fuse.FileSystem
	{
		
		public  bool ParseArguments (string[] args)
		{
			for (int i = 0; i < args.Length; ++i) {
				switch (args [i]) {
					
					case "-h":
					case "--help":
						FileSystem.ShowFuseHelp ("couchfs");
						Console.Error.WriteLine ("hellofs options:");
						Console.Error.WriteLine ("    --data.im-in-memory    Add data.im file");
						return false;
					default:
						base.MountPoint = args [i];
						break;
				}
			}
			return true;
		}
		
		protected override Errno OnReadDirectory (string directory, OpenedPathInfo info, out IEnumerable<DirectoryEntry> paths)
		{
			paths = DirectoryHelper.GetDirectory("172.16.106.128", directory);
			
			return 0;
		}
		
		
		public CouchFS()
		{
		}
	}
}
